package cn.xiaolang.function.design_pattern.class_adapter;

public class AdapterApplication {

    public static void main(String[] args) {
        
       System.out.println("====键盘适配器=====");
       PortInterface keyBoard = new KeyBoardPort();
       
       keyBoard.turnOn();
       keyBoard.connection();
       keyBoard.input();
       keyBoard.turnOff();
       
       System.out.println("====鼠标适配器=====");
       PortInterface mouse = new MousePort();
       
       mouse.turnOn();
       mouse.connection();
       mouse.move();
       mouse.click();
       mouse.turnOff();
    }
}
